﻿using System;
using System.Windows.Media.Imaging;

namespace AzureDiagMon.Common.Helpers
{
    public static class ImageHelper
    {
        public static BitmapImage ImageFromFileName(string fileName)
        {
            return new BitmapImage(new Uri(
                String.Format("/AzureDiagMon.Common.WPF;component/Images/{0}", fileName),
                UriKind.Relative));
        }
    }
}
